package main

import "fmt"

type Person struct {
	Name string
	Age  int
}

func main() {
	stu := Person{"xdc", 18}
	fmt.Println(stu)

	test31_1(stu)
	fmt.Println(stu)

	test31_2(&stu)
	fmt.Println(stu)

}

func test31_1(stu Person) {
	stu.Name = "GG"
}

func test31_2(stu *Person) {
	stu.Name = "GG"
}
